/*图片悬停样式01*/
/*使用方法：*/
/*一定要给外层div设置高宽!*/
/*
<div style="width: 40%;height: 342px;">
    <div class="hb-01-box">
        <div class="hb-01-center-img">
            <img class="hb-01-img" src="image/home/siji/n1.jpg" alt="">
        </div>
        <div class="hb-01-cover-box">
            <h2>民大 · 冬至</h2>
            <p>我们可爱的雪人!<br>更多好看照片，请前往对于模块查看噢(●'◡'●).</p>
        </div>
    </div>
</div>
*/
.hb-01-box {
    text-align: center;
    overflow: hidden;
    height: 100%;
    position: relative;
    user-select: none;
}

.hb-01-center-img {
    height: 100%;
    width: 10000px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -5000px;
    background: rgba(0, 0, 0, .2);
}

.hb-01-img {
    max-height: 100%;
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
}

.hb-01-box:hover .hb-01-img {
    filter: brightness(0.6);
    -webkit-filter: brightness(0.6);
}

.hb-01-cover-box {
    position: absolute;
    overflow: hidden;
    width: 80%;
    height: 80%;
    left: 10%;
    top: 10%;
    border-bottom: 1px solid #FFF;
    border-top: 1px solid #FFF;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1);
}

.hb-01-box:hover .hb-01-cover-box {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.hb-01-box h2 {
    text-transform: uppercase;
    text-align: center;
    position: relative;
    font-size: 17px;
    background-color: transparent;
    color: #FFF;
    padding: 1em 0;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
}

.hb-01-box p {
    color: #FFF;
    padding: 1em 0;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
}

.hb-01-box:hover p, .hb-01-box:hover h2 {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}